//
//  AJUrlHelper.swift
//  OneDollar
//
//  Created by leeqb on 11/13/15.
//  Copyright © 2015 powerlee. All rights reserved.
//

class AJUrlHelper : NSObject {
    
    class func getAppServerUrl() -> String {
        let urlMapping = CodeBase.shareInstance().appConfig["UrlMapping"]
        let serverUrl = urlMapping!["AppServerUrl"] as! String
        return serverUrl
    }
    
    class func getUrl(name: String) -> String {
        let urlMapping = CodeBase.shareInstance().appConfig["UrlMapping"]
        let serverUrl = urlMapping!["AppServerUrl"]!!
        return "\(serverUrl)/\(name)"
    }
    
}
